package net.dopan.pigframe.api.fegin.fallback;

import com.xiaoleilu.hutool.collection.CollUtil;
import lombok.extern.slf4j.Slf4j;
import net.dopan.pigframe.api.fegin.MenuServiceApi;
import net.dopan.pigframe.core.model.MenuVO;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.Set;

/**
 * @Package: net.dopan.pigframe.api.fegin.fallback
 * @Title: MenuServiceFallbackImpl
 * @Description: 菜单服务接口错误回调
 * @author: 刘宽
 * @date: 2018/10/10 11:00
 */
@Slf4j
@Service
@Component
public class MenuServiceFallbackImpl implements MenuServiceApi {
    @Override
    public Set<MenuVO> findMenuByRole(String role) {
        log.error("调用{}异常{}","findMenuByRole",role);
        return CollUtil.newHashSet();
    }
}
